package com.zzw;

/***
 * @ClassName: WhileDemo
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 21:43 2022/1/24
 * @version : V1.0
 */
public class WhileDemo {
    public static void main(String[] args) {
        int i=0;
        int sum=0;
        while (i<=10)
        {
            System.out.println(i);
            sum=sum+i;
            i++;//----> i+=1  i=i+1
            System.out.println("sum="+sum);
        }
        int a=5;
        while (a<=11)
        {
            System.out.println(a);
            a++;
        }
        System.out.println("over");

    }
}

